import { defAxios as request } from '@/utils/http';

export function useTreeApi() {
	return {
		getSysAdata(req, params = {}) {
			const reqAxios = req || request
			return reqAxios({
				url: '/dict/getSysAdata',
				method: 'post',
				data: params,
			});
		},
		getSysAgData(req,params = {}) {
			const reqAxios = req || request
			return reqAxios({
				url: '/dict/getSysAgData',
				method: 'post',
				data: params,
			});
		},
		getAdTree(req,params = {}) {
			const reqAxios = req || request
			return reqAxios({
				url: '/eleAd/tree',
				method: 'post',
				data: params,
			});
		},

	};
}
